/**
 * 
 */
package uk.co.droidinactu.inlibrislibertas.model;

import java.util.Comparator;

/**
 * sort by Author_sort field, followed by title
 */
public class CalibreBookComparatorAuthorSortTitle implements Comparator<EBook> {

	@Override
	public int compare(final EBook o1, final EBook o2) {
		final String c1 = o1.author_sort + ":" + o1.title;
		final String c2 = o2.author_sort + ":" + o2.title;
		return c1.compareTo(c2);
	}
}
